using System.Collections.Generic;
using BONSAI.Common.DTO;
using BONSAI.DAL;

namespace BONSAI.BLL
{
	public class TypeProductsBO
	{
		public TypeProductsDTO GetByID(string id)
		{
			return (new TypeProductsDAO()).GetByID(id);
		}

		public IList<TypeProductsDTO> GetAll()
		{
			return (new TypeProductsDAO()).GetAll();
		}

		public string Insert(TypeProductsDTO typeproducts)
		{
			return (new TypeProductsDAO()).Insert(typeproducts);
		}

		public void UpdateByID(TypeProductsDTO typeproducts)
		{
			(new TypeProductsDAO()).UpdateByID(typeproducts);
		}

		public void DeleteByID(string id)
		{
			(new TypeProductsDAO()).DeleteByID(id);
		}
	}
}

